package com.lifeng.service.exception;

/**
 * @author:lifeng
 * @date:2020/8/11 17:17
 */
public class BizException extends Exception{
    private String errCode;
    private String errMsg;

    public BizException(){
        super();
    }

    public BizException(String err){
        super(err);
        this.errMsg = err;
    }

    public BizException(String err,Throwable e){
        super(err,e);
        this.errMsg = err;
    }

    public BizException(String errCode,String errMsg){
        this(errMsg);
        this.errCode = errCode;
    }

    public String getErrCode() {
        return errCode;
    }

    public void setErrCode(String errCode) {
        this.errCode = errCode;
    }

    public String getErrMsg() {
        return errMsg;
    }

    public void setErrMsg(String errMsg) {
        this.errMsg = errMsg;
    }
}
